|
|
|
|
|
|
|
Figure 13.24.
The report manager with the controls in design mode. |
|
|
|
|
|
|
|
|
LISTING 13.1. RPTMGR01.TXTTHE DECLARATION CODE FOR THE REPORT MANAGER. |
|
|
|
 |
|
|
|
|
1: Public FilterString As String
2: Public SQLString As String
3: Public DBName As String
4: Dim I As Integer
5: Dim dbquery As Recordset
6: Dim dbTable As Database
7: Dim Total_Reports As Integer
8: Dim Report_Names() As String |
|
|
|
|
|
|
|
|
The next section of code that has to be added is the code that initializes the form when it is loaded. During the load routine of the report manager, you will read the report information from the database table and initialize the list box. Listing 13.2 shows the Form_Load routine for this example. |
|
|
|
|
|
|
|
|
LISTING 13.2. RPTMGR02.TXTTHEFORM_LOADROUTINE FROM THE REPORT MANAGER INITIALIZES THE LIST BOX. |
|
|
|
 |
|
|
|
|
1: Private Sub Form_Load()
2: optDisplay(0).Value = True
3: cmdReport.Caption = Display
4: rptAddress.WindowTitle = Demo Reporting
5: rptAddress.WindowMinButton = False
6: cmdPrtSetup.Visible = False
|
|
|
|
|
|